namespace HexagonWeb.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Initial : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Airlines",
                c => new
                    {
                        ID = c.Int(nullable: false, identity: true),
                        Num = c.String(),
                        EscapeDistrict = c.String(),
                        ArriveDistrict = c.String(),
                        WeekDay = c.DateTime(nullable: false),
                        Type = c.Int(nullable: false),
                        EscapeTime = c.DateTime(nullable: false),
                        ArriveTime = c.DateTime(nullable: false),
                        TopCost = c.Decimal(nullable: false, storeType: "money"),
                        MidCost = c.Decimal(nullable: false, storeType: "money"),
                        LowCost = c.Decimal(nullable: false, storeType: "money"),
                    })
                .PrimaryKey(t => t.ID);
            
            CreateTable(
                "dbo.Users",
                c => new
                    {
                        ID = c.Int(nullable: false, identity: true),
                        UserName = c.String(nullable: false, maxLength: 20),
                        Password = c.String(nullable: false),
                        Option = c.String(maxLength: 100),
                        Service = c.String(maxLength: 100),
                    })
                .PrimaryKey(t => t.ID);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.Users");
            DropTable("dbo.Airlines");
        }
    }
}
